﻿<phone:PhoneApplicationPage
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:Views="clr-namespace:Mogubang_Sl.Views"
    xmlns:UI="clr-namespace:Microsoft.Advertising.Mobile.UI;assembly=Microsoft.Advertising.Mobile.UI"
    x:Class="Mogubang_Sl.Pages.GamePage"
    SupportedOrientations="Portrait" Orientation="Portrait"
    mc:Ignorable="d"
    shell:SystemTray.IsVisible="False">
    <phone:PhoneApplicationPage.Resources>
        <Style x:Key="ButtonStyleBtnRearrange" TargetType="Button">
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate TargetType="Button">
                        <Grid>
                            <VisualStateManager.VisualStateGroups>
                                <VisualStateGroup x:Name="CommonStates">
                                    <VisualState x:Name="Pressed">
                                        <Storyboard>
                                            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="image">
                                                <DiscreteObjectKeyFrame KeyTime="0">
                                                    <DiscreteObjectKeyFrame.Value>
                                                        <Visibility>Visible</Visibility>
                                                    </DiscreteObjectKeyFrame.Value>
                                                </DiscreteObjectKeyFrame>
                                            </ObjectAnimationUsingKeyFrames>
                                            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="image1">
                                                <DiscreteObjectKeyFrame KeyTime="0">
                                                    <DiscreteObjectKeyFrame.Value>
                                                        <Visibility>Collapsed</Visibility>
                                                    </DiscreteObjectKeyFrame.Value>
                                                </DiscreteObjectKeyFrame>
                                            </ObjectAnimationUsingKeyFrames>
                                        </Storyboard>
                                    </VisualState>
                                    <VisualState x:Name="Normal"/>
                                    <VisualState x:Name="Disabled"/>
                                    <VisualState x:Name="MouseOver"/>
                                </VisualStateGroup>
                            </VisualStateManager.VisualStateGroups>
                            <Image x:Name="image1" Source="/Images/btnRearrange.png" Stretch="Fill"/>
                            <Image x:Name="image" Source="/Images/btnRearrange_Press.png" Stretch="Fill" Visibility="Collapsed"/>
                        </Grid>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style>
        <Style x:Key="ButtonStyleBtnWood" TargetType="Button">
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate TargetType="Button">
                        <Grid>
                            <VisualStateManager.VisualStateGroups>
                                <VisualStateGroup x:Name="CommonStates">
                                    <VisualState x:Name="Pressed">
                                        <Storyboard>
                                            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="image">
                                                <DiscreteObjectKeyFrame KeyTime="0">
                                                    <DiscreteObjectKeyFrame.Value>
                                                        <Visibility>Collapsed</Visibility>
                                                    </DiscreteObjectKeyFrame.Value>
                                                </DiscreteObjectKeyFrame>
                                            </ObjectAnimationUsingKeyFrames>
                                            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="image1">
                                                <DiscreteObjectKeyFrame KeyTime="0">
                                                    <DiscreteObjectKeyFrame.Value>
                                                        <Visibility>Visible</Visibility>
                                                    </DiscreteObjectKeyFrame.Value>
                                                </DiscreteObjectKeyFrame>
                                            </ObjectAnimationUsingKeyFrames>
                                        </Storyboard>
                                    </VisualState>
                                    <VisualState x:Name="Normal"/>
                                    <VisualState x:Name="Disabled"/>
                                    <VisualState x:Name="MouseOver"/>
                                </VisualStateGroup>
                            </VisualStateManager.VisualStateGroups>
                            <Image x:Name="image" Source="/Images/btnWood.png" Stretch="Fill"/>
                            <Image x:Name="image1" Margin="0,-1,0,0" Source="/Images/btnWood_Press.png" Stretch="Fill" Visibility="Collapsed"/>
                        </Grid>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style>
        <Style x:Key="ButtonStyleBtnBomb" TargetType="Button">
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate TargetType="Button">
                        <Grid>
                            <VisualStateManager.VisualStateGroups>
                                <VisualStateGroup x:Name="CommonStates">
                                    <VisualState x:Name="Pressed">
                                        <Storyboard>
                                            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="image">
                                                <DiscreteObjectKeyFrame KeyTime="0">
                                                    <DiscreteObjectKeyFrame.Value>
                                                        <Visibility>Collapsed</Visibility>
                                                    </DiscreteObjectKeyFrame.Value>
                                                </DiscreteObjectKeyFrame>
                                            </ObjectAnimationUsingKeyFrames>
                                            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="image1">
                                                <DiscreteObjectKeyFrame KeyTime="0">
                                                    <DiscreteObjectKeyFrame.Value>
                                                        <Visibility>Visible</Visibility>
                                                    </DiscreteObjectKeyFrame.Value>
                                                </DiscreteObjectKeyFrame>
                                            </ObjectAnimationUsingKeyFrames>
                                        </Storyboard>
                                    </VisualState>
                                    <VisualState x:Name="Normal"/>
                                    <VisualState x:Name="Disabled"/>
                                    <VisualState x:Name="MouseOver"/>
                                </VisualStateGroup>
                            </VisualStateManager.VisualStateGroups>
                            <Image x:Name="image" Source="/Images/btnBomb.png" Stretch="Fill"/>
                            <Image x:Name="image1" Source="/Images/btnBomb_Press.png" Stretch="Fill" Visibility="Collapsed"/>
                        </Grid>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style>
        <Style x:Key="ButtonStyleReturn" TargetType="Button">
        	<Setter Property="Template">
        		<Setter.Value>
        			<ControlTemplate TargetType="Button">
        				<Grid>
        					<VisualStateManager.VisualStateGroups>
        						<VisualStateGroup x:Name="CommonStates">
        							<VisualState x:Name="Pressed">
        								<Storyboard>
        									<DoubleAnimation Duration="0" To="2" Storyboard.TargetProperty="(UIElement.RenderTransform).(CompositeTransform.TranslateX)" Storyboard.TargetName="image" d:IsOptimized="True"/>
        									<DoubleAnimation Duration="0" To="2" Storyboard.TargetProperty="(UIElement.RenderTransform).(CompositeTransform.TranslateY)" Storyboard.TargetName="image" d:IsOptimized="True"/>
        								</Storyboard>
        							</VisualState>
        							<VisualState x:Name="Normal"/>
        							<VisualState x:Name="Disabled"/>
        							<VisualState x:Name="MouseOver"/>
        						</VisualStateGroup>
        					</VisualStateManager.VisualStateGroups>
        					<Image x:Name="image" Source="/Images/btn_return.png" Stretch="Fill" RenderTransformOrigin="0.5,0.5">
        						<Image.RenderTransform>
        							<CompositeTransform/>
        						</Image.RenderTransform>
        					</Image>
        				</Grid>
        			</ControlTemplate>
        		</Setter.Value>
        	</Setter>
        </Style>
        <Style x:Key="ButtonStyleMainMenu" TargetType="Button">
        	<Setter Property="Template">
        		<Setter.Value>
        			<ControlTemplate TargetType="Button">
        				<Grid>
        					<VisualStateManager.VisualStateGroups>
        						<VisualStateGroup x:Name="CommonStates">
        							<VisualState x:Name="Pressed">
        								<Storyboard>
        									<DoubleAnimation Duration="0" To="2" Storyboard.TargetProperty="(UIElement.RenderTransform).(CompositeTransform.TranslateX)" Storyboard.TargetName="image" d:IsOptimized="True"/>
        									<DoubleAnimation Duration="0" To="2" Storyboard.TargetProperty="(UIElement.RenderTransform).(CompositeTransform.TranslateY)" Storyboard.TargetName="image" d:IsOptimized="True"/>
        								</Storyboard>
        							</VisualState>
        							<VisualState x:Name="Normal"/>
        							<VisualState x:Name="Disabled"/>
        							<VisualState x:Name="MouseOver"/>
        						</VisualStateGroup>
        					</VisualStateManager.VisualStateGroups>
        					<Image x:Name="image" Source="/Images/btn_returnToMainMenu.png" Stretch="Fill" RenderTransformOrigin="0.5,0.5">
        						<Image.RenderTransform>
        							<CompositeTransform/>
        						</Image.RenderTransform>
        					</Image>
        				</Grid>
        			</ControlTemplate>
        		</Setter.Value>
        	</Setter>
        </Style>
        <Style x:Key="ToggleButtonStyleOnOff" TargetType="ToggleButton">
        	<Setter Property="Template">
        		<Setter.Value>
        			<ControlTemplate TargetType="ToggleButton">
        				<Grid>
        					<VisualStateManager.VisualStateGroups>
        						<VisualStateGroup x:Name="CheckStates">
        							<VisualState x:Name="Checked"/>
        							<VisualState x:Name="Unchecked">
        								<Storyboard>
        									<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="image">
        										<DiscreteObjectKeyFrame KeyTime="0">
        											<DiscreteObjectKeyFrame.Value>
        												<Visibility>Visible</Visibility>
        											</DiscreteObjectKeyFrame.Value>
        										</DiscreteObjectKeyFrame>
        									</ObjectAnimationUsingKeyFrames>
        									<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="image1">
        										<DiscreteObjectKeyFrame KeyTime="0">
        											<DiscreteObjectKeyFrame.Value>
        												<Visibility>Collapsed</Visibility>
        											</DiscreteObjectKeyFrame.Value>
        										</DiscreteObjectKeyFrame>
        									</ObjectAnimationUsingKeyFrames>
        								</Storyboard>
        							</VisualState>
        							<VisualState x:Name="Indeterminate"/>
        						</VisualStateGroup>
        					</VisualStateManager.VisualStateGroups>
        					<Image x:Name="image1" Source="/Images/btn_on.png" Stretch="Fill"/>
        					<Image x:Name="image" Source="/Images/btn_off.png" Stretch="Fill" Visibility="Collapsed"/>
        				</Grid>
        			</ControlTemplate>
        		</Setter.Value>
        	</Setter>
        </Style>
        <Storyboard x:Name="StoryboardHidePause">
        	<DoubleAnimation Duration="0:0:0.5" To="-800" Storyboard.TargetProperty="(UIElement.RenderTransform).(CompositeTransform.TranslateY)" Storyboard.TargetName="gridPause" d:IsOptimized="True">
        		<DoubleAnimation.EasingFunction>
        			<CircleEase EasingMode="EaseIn"/>
        		</DoubleAnimation.EasingFunction>
        	</DoubleAnimation>
        	<DoubleAnimation Duration="0:0:0.5" To="0.4" Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="gridPause" d:IsOptimized="True">
        		<DoubleAnimation.EasingFunction>
        			<CircleEase EasingMode="EaseIn"/>
        		</DoubleAnimation.EasingFunction>
        	</DoubleAnimation>
        </Storyboard>
        <Storyboard x:Name="StoryboardShowPause">
        	<DoubleAnimation Duration="0:0:0.5" To="0" Storyboard.TargetProperty="(UIElement.RenderTransform).(CompositeTransform.TranslateY)" Storyboard.TargetName="gridPause" d:IsOptimized="True">
        		<DoubleAnimation.EasingFunction>
        			<CircleEase EasingMode="EaseOut"/>
        		</DoubleAnimation.EasingFunction>
        	</DoubleAnimation>
        	<DoubleAnimation Duration="0:0:0.5" To="1" Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="gridPause" d:IsOptimized="True">
        		<DoubleAnimation.EasingFunction>
        			<CircleEase EasingMode="EaseOut"/>
        		</DoubleAnimation.EasingFunction>
        	</DoubleAnimation>
        </Storyboard>
        <Storyboard x:Name="StoryboardShowComplete">
        	<DoubleAnimation Duration="0:0:0.7" To="0" Storyboard.TargetProperty="(UIElement.RenderTransform).(CompositeTransform.TranslateX)" Storyboard.TargetName="gridComplete" d:IsOptimized="True">
        		<DoubleAnimation.EasingFunction>
        			<CircleEase EasingMode="EaseInOut"/>
        		</DoubleAnimation.EasingFunction>
        	</DoubleAnimation>
        	<DoubleAnimation Duration="0:0:0.7" To="1" Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="gridComplete" d:IsOptimized="True">
        		<DoubleAnimation.EasingFunction>
        			<CircleEase EasingMode="EaseInOut"/>
        		</DoubleAnimation.EasingFunction>
        	</DoubleAnimation>
        	<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="grid">
        		<EasingDoubleKeyFrame KeyTime="0:0:0.7" Value="0"/>
        		<EasingDoubleKeyFrame KeyTime="0:0:1.5" Value="1">
        			<EasingDoubleKeyFrame.EasingFunction>
        				<CircleEase EasingMode="EaseOut"/>
        			</EasingDoubleKeyFrame.EasingFunction>
        		</EasingDoubleKeyFrame>
        	</DoubleAnimationUsingKeyFrames>
        	<DoubleAnimation Duration="0:0:1.5" To="1" Storyboard.TargetProperty="(UIElement.RenderTransform).(CompositeTransform.ScaleX)" Storyboard.TargetName="grid" d:IsOptimized="True">
        		<DoubleAnimation.EasingFunction>
        			<CircleEase EasingMode="EaseOut"/>
        		</DoubleAnimation.EasingFunction>
        	</DoubleAnimation>
        	<DoubleAnimation Duration="0:0:1.5" To="1" Storyboard.TargetProperty="(UIElement.RenderTransform).(CompositeTransform.ScaleY)" Storyboard.TargetName="grid" d:IsOptimized="True">
        		<DoubleAnimation.EasingFunction>
        			<CircleEase EasingMode="EaseOut"/>
        		</DoubleAnimation.EasingFunction>
        	</DoubleAnimation>
        </Storyboard>
        <Style x:Key="ButtonStylePause" TargetType="Button">
        	<Setter Property="Template">
        		<Setter.Value>
        			<ControlTemplate TargetType="Button">
        				<Grid>
        					<VisualStateManager.VisualStateGroups>
        						<VisualStateGroup x:Name="CommonStates">
        							<VisualState x:Name="Pressed">
        								<Storyboard>
        									<DoubleAnimation Duration="0" To="2" Storyboard.TargetProperty="(UIElement.RenderTransform).(CompositeTransform.TranslateX)" Storyboard.TargetName="image" d:IsOptimized="True"/>
        									<DoubleAnimation Duration="0" To="2" Storyboard.TargetProperty="(UIElement.RenderTransform).(CompositeTransform.TranslateY)" Storyboard.TargetName="image" d:IsOptimized="True"/>
        								</Storyboard>
        							</VisualState>
        							<VisualState x:Name="Normal"/>
        							<VisualState x:Name="Disabled"/>
        							<VisualState x:Name="MouseOver"/>
        						</VisualStateGroup>
        					</VisualStateManager.VisualStateGroups>
        					<Image x:Name="image" Source="/Images/btn_pause.png" Stretch="Fill" RenderTransformOrigin="0.5,0.5">
        						<Image.RenderTransform>
        							<CompositeTransform/>
        						</Image.RenderTransform>
        					</Image>
        				</Grid>
        			</ControlTemplate>
        		</Setter.Value>
        	</Setter>
        </Style>
        <Storyboard x:Name="StoryboardStartGame">
        	<DoubleAnimation Duration="0:0:0.5" To="1" Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="gameCanvas" d:IsOptimized="True">
        		<DoubleAnimation.EasingFunction>
        			<ExponentialEase EasingMode="EaseInOut"/>
        		</DoubleAnimation.EasingFunction>
        	</DoubleAnimation>
        	<DoubleAnimation Duration="0:0:0.5" To="0" Storyboard.TargetProperty="(UIElement.RenderTransform).(CompositeTransform.TranslateY)" Storyboard.TargetName="gameCanvas" d:IsOptimized="True">
        		<DoubleAnimation.EasingFunction>
        			<ExponentialEase EasingMode="EaseInOut"/>
        		</DoubleAnimation.EasingFunction>
        	</DoubleAnimation>
        </Storyboard>
    </phone:PhoneApplicationPage.Resources>

    <phone:PhoneApplicationPage.FontFamily>
        <StaticResource ResourceKey="PhoneFontFamilyNormal"/>
    </phone:PhoneApplicationPage.FontFamily>
    <phone:PhoneApplicationPage.FontSize>
        <StaticResource ResourceKey="PhoneFontSizeNormal"/>
    </phone:PhoneApplicationPage.FontSize>
    <phone:PhoneApplicationPage.Foreground>
        <StaticResource ResourceKey="PhoneForegroundBrush"/>
    </phone:PhoneApplicationPage.Foreground>

    <Grid x:Name="LayoutRoot" Background="Transparent">

        <!--TitlePanel 包含应用程序的名称和页标题-->

        <!--ContentPanel - 在此处放置其他内容-->
        <Image Source="/Images/GameBackground.png" Stretch="Fill" d:IsLocked="True"/>
        <Image Source="/Images/itemsBack.png" Stretch="Fill" Margin="0,142,0,0" VerticalAlignment="Top" Width="480" Height="494" HorizontalAlignment="Left"/>
        <Image Margin="149,56,244,657" Source="/Images/game_LeftLife.png" Stretch="Fill" IsHitTestVisible="False"/>
        <Grid Margin="211,16,102,739">
        	<Image Source="/Images/coinBackground.png" Stretch="Fill"/>
        	<TextBlock x:Name="txtCoinCount_Copy" HorizontalAlignment="Left" Margin="43,0,0,0" TextWrapping="Wrap" Text="{Binding Text, ElementName=txtCoinCount}" VerticalAlignment="Center" FontFamily="Segoe WP Black" Foreground="Black" RenderTransformOrigin="0.5,0.5" FontSize="26.667">
        		<TextBlock.RenderTransform>
        			<CompositeTransform TranslateX="1"/>
        		</TextBlock.RenderTransform>
        	</TextBlock>

        	<TextBlock x:Name="txtCoinCount" HorizontalAlignment="Left" Margin="43,0,0,0" TextWrapping="Wrap" Text="7777" VerticalAlignment="Center" FontFamily="Segoe WP Black" Foreground="#FFFFCB43" FontSize="26.667" RenderTransformOrigin="0.5,0.5">
        		<TextBlock.RenderTransform>
        			<CompositeTransform TranslateY="-2"/>
        		</TextBlock.RenderTransform>
        	</TextBlock>
        </Grid>

        <!--ContentPanel - 在此处放置其他内容-->
        <Button x:Name="btnRearrange" Content="重排" HorizontalAlignment="Left" Height="66" Margin="10,646,0,0" VerticalAlignment="Top" Width="147" Click="btnRearrange_Click" Style="{StaticResource ButtonStyleBtnRearrange}"/>
        <Button x:Name="btnWood" Content="木头" HorizontalAlignment="Center" Height="66" Margin="0,646,0,0" VerticalAlignment="Top" Width="146" Click="btnWood_Click" Style="{StaticResource ButtonStyleBtnWood}"/>
        <Button x:Name="btnBomb" Content="炸弹" HorizontalAlignment="Right" Height="66" Margin="0,646,10,0" VerticalAlignment="Top" Width="146" Click="btnBomb_Click" Style="{StaticResource ButtonStyleBtnBomb}"/>
        <TextBlock x:Name="txtScore_Copy" HorizontalAlignment="Left" Margin="17,29,0,0" TextWrapping="Wrap" Text="{Binding Text, ElementName=txtScore}" VerticalAlignment="Top" FontSize="32" FontWeight="Bold" FontFamily="Segoe WP Black" Foreground="Black" RenderTransformOrigin="0.5,0.5">
        	<TextBlock.RenderTransform>
        		<CompositeTransform TranslateX="3" TranslateY="3"/>
        	</TextBlock.RenderTransform>
        </TextBlock>
        <TextBlock x:Name="txtScore" HorizontalAlignment="Left" Margin="17,29,0,0" TextWrapping="Wrap" Text="7777" VerticalAlignment="Top" FontSize="32" FontWeight="Bold" FontFamily="Segoe WP Black" Foreground="White"/>
        <TextBlock x:Name="txtLife_Copy" HorizontalAlignment="Left" Margin="236,66,0,0" TextWrapping="Wrap" Text="{Binding Text, ElementName=txtLife}" VerticalAlignment="Top" FontSize="48" FontFamily="Segoe WP Black" Foreground="Black" RenderTransformOrigin="0.5,0.5">
        	<TextBlock.RenderTransform>
        		<CompositeTransform TranslateX="3" TranslateY="3"/>
        	</TextBlock.RenderTransform>
        </TextBlock>
        <TextBlock x:Name="txtLife" HorizontalAlignment="Left" Margin="236,66,0,0" TextWrapping="Wrap" Text="188" VerticalAlignment="Top" FontSize="48" FontFamily="Segoe WP Black" Foreground="White"/>
        <Button x:Name="btnPause" Content="pause" HorizontalAlignment="Left" Height="55" Margin="407,10,0,0" VerticalAlignment="Top" Width="56" Click="btnPause_Click" Style="{StaticResource ButtonStylePause}"/>
        <Grid x:Name="gridBombCount" Margin="0,640,17,0" IsHitTestVisible="False" HorizontalAlignment="Right" Width="43" Height="43" VerticalAlignment="Top">
        	<Ellipse HorizontalAlignment="Left" Height="43" Stroke="White" VerticalAlignment="Top" Width="43" StrokeThickness="3">
        		<Ellipse.Fill>
        			<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
        				<GradientStop Color="#FF990000" Offset="1"/>
        				<GradientStop Color="#FFC70000"/>
        			</LinearGradientBrush>
        		</Ellipse.Fill>
        	</Ellipse>
        	<TextBlock x:Name="txtBombCount" TextWrapping="Wrap" Text="77" HorizontalAlignment="Center" VerticalAlignment="Center" Foreground="White"/>
        </Grid>
        <Grid x:Name="gridWoodCount" Margin="0,640,175,0" IsHitTestVisible="False" HorizontalAlignment="Right" Width="43" Height="43" VerticalAlignment="Top">
        	<Ellipse HorizontalAlignment="Left" Height="43" Stroke="White" VerticalAlignment="Top" Width="43" StrokeThickness="3">
        		<Ellipse.Fill>
        			<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
        				<GradientStop Color="#FF990000" Offset="1"/>
        				<GradientStop Color="#FFC70000"/>
        			</LinearGradientBrush>
        		</Ellipse.Fill>
        	</Ellipse>
        	<TextBlock x:Name="txtWoodCount" TextWrapping="Wrap" Text="77" HorizontalAlignment="Center" VerticalAlignment="Center" Foreground="White"/>
        </Grid>
        <Views:GameCanvas x:Name="gameCanvas" HorizontalAlignment="Left" Height="480" Margin="0,150,0,0" VerticalAlignment="Top" Width="480" Background="#02FFFFFF" RenderTransformOrigin="0.5,0.5" Opacity="0">
        	<Views:GameCanvas.RenderTransform>
        		<CompositeTransform TranslateY="-500"/>
        	</Views:GameCanvas.RenderTransform>
        </Views:GameCanvas>
        <Image Margin="165,0,164,18" Source="/Images/logo77.png" Stretch="Fill" HorizontalAlignment="Center" Width="151" Height="43" VerticalAlignment="Bottom"/>
        <Grid x:Name="gridAd" Height="80" VerticalAlignment="Bottom" Width="480">
            <Image x:Name="imgBanner" Source="/Images/banner1.jpg" Stretch="Fill" Width="480" Height="80" VerticalAlignment="Bottom" Tap="imgBanner_Tap"/>
            <UI:AdControl x:Name="microAd" ApplicationId="cd39b0e3-d980-42fb-bfc2-35e13ea388e8" AdUnitId="146033" HorizontalAlignment="Left" Height="80" VerticalAlignment="Top" Width="480"/>
        </Grid>
        <Views:SocreLifeAddView x:Name="scoreView" HorizontalAlignment="Center" Margin="0,314,0,0" VerticalAlignment="Top"/>
        <Grid x:Name="gridPause" HorizontalAlignment="Left" Height="720" Margin="0,0,-4,0" VerticalAlignment="Top" Width="484" Background="#7F000000" RenderTransformOrigin="0.5,0.5" Opacity="0.4">
        	<Grid.RenderTransform>
        		<CompositeTransform TranslateY="-800"/>
        	</Grid.RenderTransform>
        	<Grid Margin="15,44,16,16">
        		<Image Source="/Images/pause_back.png" Stretch="Fill" Width="453" Height="660"/>
        		<Button x:Name="btnResume" Content="Button" HorizontalAlignment="Center" Height="62" Margin="135,541,134,57" Style="{StaticResource ButtonStyleReturn}" Width="184" Click="btnResume_Click"/>
        		<Button x:Name="btnMainMenu" Content="Button" Height="50" Margin="99,479,98,131" Style="{StaticResource ButtonStyleMainMenu}" Width="256" Click="btnMainMenu_Click"/>
        		<ToggleButton x:Name="btnSound" Content="ToggleButton" Margin="220,200,83,415" Style="{StaticResource ToggleButtonStyleOnOff}" IsChecked="True" Click="btnSound_Click"/>
        		<ToggleButton x:Name="btnMusic" Content="ToggleButton" Margin="220,266,83,349" Style="{StaticResource ToggleButtonStyleOnOff}" IsChecked="True" Click="btnMusic_Click"/>
        	</Grid>
        </Grid>
        <Grid x:Name="gridComplete" HorizontalAlignment="Left" Height="720" VerticalAlignment="Top" Width="480" Background="#7F000000" RenderTransformOrigin="0.5,0.5" Opacity="0.4">
        	<Grid.RenderTransform>
        		<CompositeTransform TranslateX="-480"/>
        	</Grid.RenderTransform>
        	<Grid Margin="27,30,28,43">
        		<Image Source="/Images/complete_back.png" Stretch="Fill" Width="425" Height="647"/>
        		<Grid x:Name="grid" Margin="0,290,0,0" HorizontalAlignment="Center" VerticalAlignment="Top" RenderTransformOrigin="0.5,0.5" Opacity="0">
        			<Grid.RenderTransform>
        				<CompositeTransform ScaleX="0.4" ScaleY="0.4"/>
        			</Grid.RenderTransform>
        			<TextBlock x:Name="txtCompleteScore_Copy" HorizontalAlignment="Center" TextWrapping="Wrap" VerticalAlignment="Top" Foreground="White" FontFamily="Segoe WP Black" FontSize="48" RenderTransformOrigin="0.5,0.5" Text="{Binding Text, ElementName=txtCompleteScore}">
        				<TextBlock.RenderTransform>
        					<CompositeTransform TranslateX="3" TranslateY="3"/>
        				</TextBlock.RenderTransform>
        			</TextBlock>
        			<TextBlock x:Name="txtCompleteScore" HorizontalAlignment="Center" TextWrapping="Wrap" Text="88888888" VerticalAlignment="Top" Foreground="#FF004C4D" FontFamily="Segoe WP Black" FontSize="48"/>
        			<StackPanel Margin="0,70,0,0" Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Top">
        				<Image Source="/Images/coin.png" Stretch="Fill" Width="29" Height="29" HorizontalAlignment="Center" VerticalAlignment="Center"/>
        				<TextBlock x:Name="txtCompleteCoin" HorizontalAlignment="Center" TextWrapping="Wrap" Text="+77" VerticalAlignment="Center" Foreground="#FFB93B00" FontFamily="Segoe WP Black" Margin="5,0,0,0" FontSize="26.667"/>
        			</StackPanel>
        		</Grid>
        		<Image x:Name="imgCompleteNewHigh" Margin="182,400,78,197" Source="/Images/complete_newhigh.png" Stretch="Fill" Width="165" Height="50"/>
        		<Button x:Name="btnCompleteMainMenu" Content="Button" Height="50" Margin="0,522,0,75" Style="{StaticResource ButtonStyleMainMenu}" Width="256" Click="btnMainMenu_Click" HorizontalAlignment="Center"/>
        	</Grid>
        </Grid>
        <Image x:Name="imgGuide" Source="/Images/gamingGuide.png" Stretch="Fill" Tap="imgGuide_Tap" Visibility="Collapsed"/>
    </Grid>

</phone:PhoneApplicationPage>